#!/bin/bash

tmp=$(mktemp)

if [ -z $1 ]
then
	echo "[*] $(basename $0) input.pdf"
	exit 0
fi

for i in $@
do
	pdftk "$i" cat 1D output "$tmp"
	mv -v "$tmp" "$i"
done
